<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui" 
      xmlns:ui="http://java.sun.com/jsf/facelets"  >

    <head>
        <title>Historia</title>
    </head>

    <body>
    <ui:composition >
        <h:form id="cadastroHistoriaForm" >
            <p:panel >
                <h:panelGrid columns="2">
                    <h:outputLabel for="descricao" />
                    <p:inputText id="descricao" value="#{historiaController.vo.descricao}" />

                    <h:outputLabel for="numero" />
                    <p:inputText id="numero" value="#{historiaController.vo.numero}" />

                    <h:outputLabel for="esforco" />
                    <p:inputText id="esforco" value="#{historiaController.vo.esforco}" />
                </h:panelGrid>
                <p:messages autoUpdate="true" redisplay="false"/>

                <p:commandButton value="Salvar" action="#{historiaController.salvar}" />
                <p:commandLink value="Limpar" action="#{historiaController.limpar}" />            
            </p:panel>
        </h:form>
    </ui:composition>
</body>
</html>
